package com.pisolution.actuator.service.schedule;

import lombok.SneakyThrows;

/**
 * @author likai
 * @version 1.0.0
 * @ClassName TestHeartbeat.java
 * @Description TODO
 * @createTime 2021年09月02日 15:59:00
 */
public class TestHeartbeat {

    @SneakyThrows
    public static void main(String[] args) {
        HeartbeatMonitor heartbeatMonitor = new HeartbeatMonitor();
        heartbeatMonitor.cancel();
        Thread.sleep(5000);
        heartbeatMonitor.resetHeartbeat(3);
    }
}
